package net.xiaoyu233.mitemod.miteite.trans.entity;

import net.minecraft.EntityAgeable;
import net.minecraft.EntityLiving;
import net.minecraft.EntityPig;
import net.minecraft.World;
import net.xiaoyu233.mitemod.miteite.util.Configs;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.SoftOverride;

@Mixin(EntityPig.class)
public class EntityPigTrans extends EntityLivestockTrans {

    public EntityPigTrans(World world) {
        super(world);
    }

    @Override
    public void setAttackTarget(EntityLiving par1EntityLivingBase) {

    }

    @Shadow
    public EntityAgeable createChild(EntityAgeable var1) {
        return null;
    }

    @SoftOverride
    public int getBreedExp() {
        return Configs.wenscConfig.breedXpPig.ConfigValue;
    }

    @Shadow
    public void produceGoods() {
    }
}
